<template>
    <md-card>
      <md-card-header data-background-color="green">
        <h5 class="title">基本信息</h5>
      </md-card-header>

      <md-card-content>
        <div class="md-layout">
          <LabelItem title="经销商" :datacolumn="formdata.deaDealerName" :mergelen="2"></LabelItem>
          <LabelItem title="金融机构" :datacolumn="formdata.fstFininstName" :mergelen="2"></LabelItem>
          <LabelItem title="金融产品" :datacolumn="formdata.proCarProductName"></LabelItem>
          <LabelItem title="还款频率" :datacolumn="g_mlabel(29,formdata.finRefundFreq)"></LabelItem>
          <LabelItem title="经销商属性" :datacolumn="g_mlabel(430,formdata.dealerAgentName)"></LabelItem>
          <LabelItem title="开票经销商" :datacolumn="formdata.finOfferDealer"></LabelItem>
          <LabelItem title="来源名称" :datacolumn="formdata.finSourceName"></LabelItem>
          <LabelItem title="销售顾问姓名" :datacolumn="formdata.finSalConsultabtName"></LabelItem>
          <LabelItem title="销售顾问手机" :datacolumn="formdata.finSalConsultabtMobile"></LabelItem>
          <LabelItem title="车辆品牌" :datacolumn="formdata.brdCarBrandName"></LabelItem>
          <LabelItem title="车型" :datacolumn="formdata.mdlCarModelName" :mergelen="2"></LabelItem>
          <LabelItem title="车辆颜色" :datacolumn="formdata.finCarColor"></LabelItem>
          <!-- 是否直销 -->
          <template v-if="formdata.deaDirectSellFlg == '1'">
            <LabelItem title="直销供货方名称" :datacolumn="formdata.finDsName"></LabelItem>
            <LabelItem title="直销供货方开户行" :datacolumn="formdata.finDsBank"></LabelItem>
            <LabelItem title="直销供货方账号" :datacolumn="formdata.finDsAccount"></LabelItem>
          </template>
          <LabelItem title="是否二手车" :datacolumn="g_mlabel(20,formdata.finSecondhandFlg)"></LabelItem>
          <!-- 是二手车 -->
          <template v-if="formdata.finSecondhandFlg == '1'">
            <LabelItem title="卖方姓名" :datacolumn="formdata.finSellerName"></LabelItem>
            <LabelItem title="卖方证件号码" :datacolumn="formdata.finSellerPaperNo"></LabelItem>
            <LabelItem title="车辆出厂日期" :datacolumn="formdata.finRegisterDate"></LabelItem>
            <LabelItem title="二手车里程数" :datacolumn="formdata.finCarMileage"></LabelItem>
            <LabelItem title="过户次数" :datacolumn="formdata.finTransferNumber"></LabelItem>
          </template>
          <LabelItem title="车辆发票金额（元）" :datacolumn="formdata.finCarPrice"></LabelItem>
          <LabelItem title="首付金额（元）" :datacolumn="formdata.finDownPayment"></LabelItem>
          <LabelItem title="首付比例" :datacolumn="formdata.finDownPaymentRate"></LabelItem>
          <LabelItem title="押金比例" :datacolumn="formdata.finDepositRate"></LabelItem>
          <LabelItem title="押金金额（元）" :datacolumn="formdata.finDepositAmount"></LabelItem>
          <LabelItem title="尾款（元）" :datacolumn="formdata.finRemainAmount"></LabelItem>
          <LabelItem title="尾款比例" :datacolumn="formdata.finRemainRate"></LabelItem>
          <LabelItem title="贷款期限" :datacolumn="formdata.finLeasehold"></LabelItem>
          <LabelItem title="手续费（元）" :datacolumn="formdata.finFeeAmount"></LabelItem>
          <LabelItem title="渠道商" :datacolumn="formdata.braBranchName"></LabelItem>
          <LabelItem title="网银流水号" :datacolumn="formdata.appWebBankSerialNo"></LabelItem>
          <LabelItem title="放款经销商" :datacolumn="formdata.finFkDealerName"></LabelItem>
          <LabelItem title="放款拆分方式" :datacolumn="formdata.loanPackFlg"></LabelItem>
          <LabelItem title="抵押办理城市" :datacolumn="formdata.mortgageCity"></LabelItem>
          <LabelItem title="抵押办理方" :datacolumn="g_mlabel('452',formdata.mortgageOrg)"></LabelItem>
          <template v-if="formdata.coopOrganizationCd != ''">
            <LabelItem title="合作机构" :datacolumn="g_mlabel(301,formdata.coopOrganizationCd)"></LabelItem>
            <LabelItem title="授信业务编号" :datacolumn="formdata.creditServiceNo"></LabelItem>
            <LabelItem title="合同编号" :datacolumn="formdata.myBankLoanarNo"></LabelItem>
            <LabelItem title="网商放款日" :datacolumn="formdata.myBankLendDate"></LabelItem>
          </template>

          <LabelItem title="购置税（元）" :datacolumn="formdata.finCarTax" v-if="formdata.proCarTaxFlg == '1'"></LabelItem>
          <LabelItem title="保险费用（元）" :datacolumn="formdata.finInsuranceCost" v-if="formdata.proInsuranceCostFlg == '1'"></LabelItem>
          <LabelItem title="上牌及其他杂费（元）" :datacolumn="formdata.finLicenseCost" v-if="formdata.proLicenseCostFlg == '1'"></LabelItem>
          <LabelItem title="牌照费（元）" :datacolumn="formdata.finLicenseFee" v-if="formdata.proLicenseFeeFlg == '1'"></LabelItem>
          <LabelItem title="LBS管理费（元）" :datacolumn="formdata.finOtherCost" v-if="formdata.proOtherCostFlg == '1'"></LabelItem>
          <LabelItem title="装潢费(仅限GPS)（元）" :datacolumn="formdata.finUpholsterCost" v-if="formdata.proUpholsterCostFlg == '1'"></LabelItem>
          <LabelItem title="保养费（元）" :datacolumn="formdata.finFeeAmount" v-if="formdata.proUpkeepCostFlg == '1'"></LabelItem>
          <LabelItem title="平台费用（元）" :datacolumn="formdata.finFeeAmount" v-if="formdata.finSecondhandFlg == '1'"></LabelItem>
          <LabelItem title="金融服务费（元）" :datacolumn="formdata.finFeeAmount" v-if="formdata.proFinanceFeeFlg == '1'"></LabelItem>
          <LabelItem title="贴息" :datacolumn="formdata.finFeeAmount" v-if="formdata.proDiscountFlg == '1'"></LabelItem>
          <LabelItem title="提车减免费（元）" :datacolumn="formdata.finFeeAmount" v-if="formdata.proCarBreaksFlg == '1'"></LabelItem>
          <LabelItem title="垫付保证金比例" :datacolumn="formdata.finFeeAmount" v-if="formdata.proPrePaymentFlg == '1'"></LabelItem>
          <LabelItem title="垫付保证金金额（元）" :datacolumn="formdata.finFeeAmount" v-if="formdata.proPrePaymentFlg == '1'"></LabelItem>
          <LabelItem title="是否配置GPS" :datacolumn="g_mlabel(20,formdata.finFeeAmount)" v-if="formdata.proPrePaymentFlg == '1'"></LabelItem>
          <LabelItem title="GPS打包融资" :datacolumn="g_mlabel(20,formdata.finFeeAmount)" v-if="formdata.proGpsFlg == '1'"></LabelItem>
          <LabelItem title="GPS售价" :datacolumn="formdata.finFeeAmount" v-if="formdata.proGpsFlg == '1'"></LabelItem>
          <!--<LabelItem title="11" :datacolumn="formdata.finFeeAmount" v-if="formdata.aaa == '1'"></LabelItem>-->
          <!--<LabelItem title="11" :datacolumn="formdata.finFeeAmount" v-if="formdata.aaa == '1'"></LabelItem>-->
          <!--<LabelItem title="11" :datacolumn="formdata.finFeeAmount" v-if="formdata.aaa == '1'"></LabelItem>-->
          <!--<LabelItem title="11" :datacolumn="formdata.finFeeAmount" v-if="formdata.aaa == '1'"></LabelItem>-->
          <LabelItem title="项目总额（元）" :datacolumn="formdata.finCarAmount"></LabelItem>
          <LabelItem title="月供（元）" :datacolumn="formdata.finRefundAmount"></LabelItem>
          <LabelItem title="融资总额（元）" :datacolumn="formdata.finRealloanAmount"></LabelItem>
          <template v-if="formdata.finalPassTime !=null && formdata.discountProductFlg =='1'">
            <LabelItem title="实际月供（元）：" :datacolumn="formdata.realRefundAmount"></LabelItem>
          </template>
          <LabelItem title="年利率" :datacolumn="formdata.finBaseIntrate"></LabelItem>
          <LabelItem title="风险敞口（元）" :datacolumn="finRiskExposure"></LabelItem>
          <LabelItem title="风险敞口车价比" :datacolumn="finRiskExposureRate"></LabelItem>
        </div>
      </md-card-content>
    </md-card>

</template>

<script>
import LabelItem from './Unit/LabelItem.vue'
export default {
  components: {
    LabelItem
  },
  props: {
    formdata: {}
  },
  data () {
    return {
      finRiskExposure: '',
      finRiskExposureRate: '',
      finRefundFreq: 'aaa' // Common.getMcode(this.formdata.finRefundFreq)
    }
  },
  mounted: function () {
    console.log()
  }
}
</script>
